#include "stdafx.h"
#include "UiLayer.h"
#include "Editor.h"
#include "ExEditor/ItemEditor/ItemExEditor.h"

using namespace tnmujoy::uranus;
//-------------------------------------------------------------------------
tnmujoy::uranus::UiLayer::UiLayer( QObject* _parent )
    : QObject(_parent)
{

}
//-------------------------------------------------------------------------
tnmujoy::uranus::UiLayer::~UiLayer()
{

}
//-------------------------------------------------------------------------
void tnmujoy::uranus::UiLayer::initialize()
{
    editorPtr_ = new Editor(this);
    itemEditorPtr_ = new ItemExEditor(this);

    editorPtr_->initialize();
    itemEditorPtr_->initialize();

    connect(editorPtr_, SIGNAL(SiExecItemExEditor()), this, SLOT(execItemExEditor()));
}
//-------------------------------------------------------------------------
void tnmujoy::uranus::UiLayer::run()
{
    editorPtr_->run();
}
//-------------------------------------------------------------------------
void tnmujoy::uranus::UiLayer::execItemExEditor()
{
    itemEditorPtr_->exec();
}
